//=====================================================================================
// All Rights Reserved , Copyright © Learun 2014
//=====================================================================================

using DotNet.Kernel;
using BPMS.Entity;
using System.Collections;
using System.Text;
using System.Data;

namespace BPMS.IBusiness
{
    /// <summary>
    /// 系统角色菜单列表表头定义关系 - 接口
    /// <author>
    ///		<name>shecixiong</name>
    ///		<date>2014.01.07</date>
    /// </author>
    /// </summary>
    public interface BPMS_RoleMenuTableColumnsIBLL
    {
        /// <summary>
        /// 加载列表资源，列访问控制
        /// </summary>
        /// <returns></returns>
        DataTable GetSysMenu();
        /// <summary>
        /// 加载列表字段资源，字段访问控制
        /// </summary>
        /// <param name="RoleId">角色主键</param>
        /// <returns></returns>
        DataTable GetTableColumns(string RoleId);
        /// <summary>
        /// 分配角色字段权限
        /// </summary>
        /// <param name="KeyValue">主键值</param>
        /// <param name="RoleId">角色主键</param>
        /// <param name="CreateUserId">操作用户主键</param>
        /// <param name="CreateUserName">操作用户</param>
        /// <returns></returns>
        int AddFieldPermission(string[] KeyValue, string RoleId, string CreateUserId, string CreateUserName);
    }
}